package com.sdry.service.impl.workplace;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sdry.mapper.workplace.OthersMapper;
import com.sdry.model.hpf.Product;
import com.sdry.model.llm.Classes;
import com.sdry.model.llm.ProductionLine;
import com.sdry.model.llm.Team;
import com.sdry.model.lz.DeviceModel;
import com.sdry.model.workplace.Assemble;
import com.sdry.service.workplace.OthersService;
@Service
@Transactional
public class OthersServiceImpl implements OthersService{
	@Resource
    private OthersMapper othersMapper;

	@Override
	public List<DeviceModel> deviceByMution(DeviceModel deviceModel) {
		return othersMapper.deviceByMution(deviceModel);
	}

	@Override
	public Integer deviceUpdate(DeviceModel deviceModel) {
		return othersMapper.deviceUpdate(deviceModel);
	}

	@Override
	public List<Assemble> selectAtubeByDateAndProduct(Map<String, Object> map) {
		return othersMapper.selectAtubeByDateAndProduct(map);
	}

	@Override
	public Product findProductByPnum(String pnum) {
		return othersMapper.findProductByPnum(pnum);
	}

	@Override
	public List<ProductionLine> productionLineByMution(
			ProductionLine productionLine) {
		return othersMapper.productionLineByMution(productionLine);
	}

	@Override
	public List<Team> teamByMution(Team team) {
		return othersMapper.teamByMution(team);
	}

	@Override
	public List<Classes> classesByMution(Classes classes) {
		return othersMapper.classesByMution(classes);
	}
	
}
